<template>
	<view>
		<view class="feed-user">
			<u-avatar size="60" class="avatar" :src="feedInfo.img_portrait" />
			<view class="info">
				<text>{{feedInfo.name}}</text>
			</view>
		</view>
		<view class="feed-info">
			<view class="title" </view>
			<image class="feed-imgs" mode="widthFix" :src="feedInfo.img"  />
			<view class="other">
				<text>ddd 发布</text>
				<text>111 阅读 000 点赞</text>
			</view>
		</view>
		<!-- <view class="line" /> -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
				// 动态详情
				feedInfo: {}
			}
		},
		onLoad(obj){
			
			if(obj.obj === '首页' || obj.obj === 'undefined'){
				let datalist = JSON.parse(this.$store.state.objdata)
				this.feedInfo = datalist
			}else{
				let a = JSON.parse(obj.obj)
				this.feedInfo = a
			}

		},
		components: {
			// comment
		},
		
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
	.feed-user {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: flex-start;
		align-items: center;
		align-content: center;
		margin: 20upx 0 0 25upx;

		.info {
			display: flex;
			flex-direction: column;
			flex-wrap: wrap;
			justify-content: flex-end;
			align-items: left;
			margin-left: 20upx;
			font-size: 24upx;
			font-weight: bolder;
			color: #1f2046;
		}
	}

	.feed-info {
		width: 700upx;
		margin-top: 20upx;
		margin-left: 25upx;
		text-align: center;
		padding-bottom: 10upx;

		.title {
			font-size: 32upx;
			margin-bottom: 30upx;
			text-align: left;
			line-height: 52upx;
			color: #666;
		}

		.feed-imgs {
			margin: 5upx 0;
			width: 100%;
		}

		.other {
			display: flex;
			flex-direction: row;
			flex-wrap: wrap;
			justify-content: space-between;
			align-items: center;
			align-content: center;
			padding: 40upx 0 20upx;
			font-size: 24upx;
			color: #888;
			// border: 1px solid red;
			// text{
			// 	flex: 1;
			// 	margin-left: 60px;
			// }
			.micon {
				padding: 10upx 20upx;
			}
		}
	}

	.line {
		height: 30upx;
		width: 750upx;
		background-color: #f3f3f3;
	}
</style>
